// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 导入element-ui
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

import { NgFormElementPlus } from 'el-form-editor' //导入
import 'el-form-editor/lib/el-form-editor.css' //导入

// console.log(NgFormElementPlus)

const app = createApp(App)

// app.use(NgFormElementPlus, { locale: "zh_CN", components: components }); //注册
app.use(NgFormElementPlus, { locale: 'zh_CN' }) //注册
app.use(ElementPlus, { locale: zhCn })

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(createPinia())
app.use(router)

app.mount('#app')
